﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPlatePrintSys.Infrastructure.Web {
    [Obsolete]
    public partial class LoginReq {
        /// <summary>
        /// 验证码
        /// </summary>
        [JsonProperty("captcha_code")]
        public string Code { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [JsonProperty("password")]
        public string Password { get; set; }

        /// <summary>
        /// 账号
        /// </summary>
        [JsonProperty("username")]
        public string Username { get; set; }

        /// <summary>
        /// 验证码ID
        /// </summary>
        [JsonProperty("captcha_id")]
        public string Uuid { get; set; }
    }

    #region models
    public partial class LoginResp {
        [JsonProperty("code")]
        public long Code { get; set; }

        [JsonProperty("data")]
        public LoginData Data { get; set; }
    }

    public partial class LoginData {
        [JsonProperty("token")]
        public string Token { get; set; }

        [JsonProperty("user_info")]
        public UserInfo UserInfo { get; set; }
    }

    public partial class UserInfo {
        [JsonProperty("account")]
        public string Account { get; set; }

        [JsonProperty("id")]
        public long Id { get; set; }

        [JsonProperty("role")]
        public long Role { get; set; }

        [JsonProperty("username")]
        public string Username { get; set; }
    }
    #endregion

    [Obsolete]
    public partial class LogoutResp {
        [JsonProperty("code")]
        public long Code { get; set; }

        [JsonProperty("data")]
        public string Data { get; set; }
    }
}
